<?php
if(isset($mess_succ) && $mess_succ!="") {
    echo "<div class='mess_succ'>";
    echo    "<ul>";
    echo        "<li>$mess_succ</li>";
    echo    "</ul>";
    echo "</div>";
}
?>
<div style="margin-top: 10px; padding: 10px; width: 100px; text-align: center;" class="button"><a style="display: block;" href="<?php echo base_url(); ?>admin_combo/module/search">Tìm kiếm</a></div>

<div class="formPanel">
    <div id="sidetree">
        <fieldset>
            <legend>Category</legend>
            <div class="treeheader">&nbsp;</div>
            <div id="sidetreecontrol"> <a href="#">Collapse All</a> | <a href="#">Expand All</a> </div>

            <ul class="treeview" id="tree">
              <?php
                $href=base_url()."admin_combo/module/index";
                callTree($info, $href);
              ?>
            </ul>
      </fieldset>
    </div>
</div>

<div id="formerror"></div>
<!-- Add Form -->
<div id="formaction_module">
    <div class="formPanel02">
        <fieldset>
            <legend>Thêm module</legend>
            <form id="input_form_module" method="post">
                <table id="tbfrmaction">
                    <tr>
                        <td>Tên</td>
                        <td>
                            <input type="text" id="txtName" name="txtName" size="30" class="required" />
                        </td>
                        <td>Ghi Chú</td>
                        <td>
                            <textarea id="txtNote" name="txtNote" cols="30" rows="4"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>Vị Trí</td>
                        <td>
                            <input type="text" id="txtOrder" name="txtOrder" size="10" class="required digits" />
                        </td>
                        <td>Link</td>
                        <td>
                            <input type="text" id="txtLink" name="txtLink" size="30" class="required" />
                        </td>
                    </tr>
                    <tr>
                        <td>Parent</td>
                        <td><label id="lblParent" name="lblParent"><?php if(isset($module_parent)) echo $module_parent; else echo 0; ?></label></td>
                        <td>&nbsp;</td>
                        <td><input type="submit" id="btnSubmit_module" class="button" name="ok" value="Đăng ký" /></td>
                    </tr>
                </table>
            </form>
        </fieldset>
    </div>
</div>
<div id="dialog" title="Warning"></div>